<DatePicker TValue="DateTime?" ShowTime="@true"
               Format="@("yyyy-MM-dd HH:mm:ss")"
               DisabledDate="date => date <= DateTime.Today"
               DisabledTime="date => GetDisabledTime(date)" 
               />
<br />
<DatePicker TValue="DateTime?" Picker="DatePickerType.Month"
               DisabledDate="date => date <= DateTime.Now"
                />
<br />
<RangePicker TValue="DateTime?[]" DisabledDate="date => date <= DateTime.Now"/>
<br />
<RangePicker TValue="DateTime?[]" ShowTime='@true'
                DisabledDate="date => date <= DateTime.Now" 
                />

@code {
    private DatePickerDisabledTime GetDisabledTime(DateTime date)
    {
        int[] timeRange = new int[60];
        for (int i = 0; i < timeRange.Length; i++)
        {
            timeRange[i] = i;
        }

        return new DatePickerDisabledTime(timeRange[4..15], timeRange[20..55], timeRange[3..19]);
    }
}